Expand description

Companion crate for enum-extract.

This crate provides the EnumExtractError type, which is used by enum-extract to report errors. It must be a separate crate because enum-extract is a proc-macro crate, which are only allowed to export procedural macros.

Example Message

use enum_extract_error::EnumExtractError;

let error: EnumExtractError = EnumExtractError::new("One", "Three");
assert_eq!(error.to_string(), "expected One, got Three");

Structs

  • An error that occurs when the actual variant does not match the expected variant.
  • An error that occurs when the actual variant does not match the expected variant.